Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oc/grating efficiencies #215

Merged
merged 8 commits into from
Jun 15, 2023
Merged

Oc/grating efficiencies #215

merged 8 commits into from
Jun 15, 2023

Conversation

oczoske
Copy link
Collaborator

@oczoske oczoske commented Jun 2, 2023

This pull request is related to issue #214 .

It implements a class SpectralEfficiency that pulls grating efficiencies from a file and applies them to the FOVs for the corresponding spectral trace. The model is MICADO, for which Ric Davies showed the efficiencies on 2023-06-01.

The class loads the efficiencies from a file into a dictionary self.efficiencies with the trace_id as the key and a TERCurve as value. The efficiencies are applied to the FieldOfView cubes.

The file format for providing the efficiencies is a fits file similar to the trace definition file. It is described in the docstring of the class SpectralEfficiency.

A few very basic unit tests are included. To test with full instrument configurations for METIS and MICADO requires the pull request AstarVienna/irdb#103.

@codecov
Copy link

codecov bot commented Jun 12, 2023

Codecov Report

Patch coverage: 56.81% and project coverage change: -0.08 ⚠️

Comparison is base (da9286c) 75.21% compared to head (8b6e085) 75.14%.

❗ Current head 8b6e085 differs from pull request most recent head e83c513. Consider uploading reports for the commit e83c513 to get more accurate results

Additional details and impacted files
@@              Coverage Diff               @@
##           dev_master     #215      +/-   ##
==============================================
- Coverage       75.21%   75.14%   -0.08%     
==============================================
  Files             147      149       +2     
  Lines           15248    15336      +88     
==============================================
+ Hits            11469    11524      +55     
- Misses           3779     3812      +33     
Impacted Files Coverage Δ
scopesim/effects/spectral_trace_list_utils.py 72.95% <0.00%> (-0.36%) ⬇️
scopesim/effects/spectral_efficiency.py 50.79% <50.79%> (ø)
scopesim/effects/spectral_trace_list.py 61.94% <66.66%> (+0.57%) ⬆️
...sim/tests/tests_effects/test_SpectralEfficiency.py 93.75% <93.75%> (ø)
scopesim/effects/__init__.py 100.00% <100.00%> (ø)

... and 13 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@oczoske oczoske marked this pull request as ready for review June 14, 2023 14:08
@oczoske oczoske requested review from teutoburg and hugobuddel and removed request for teutoburg June 14, 2023 14:08
@oczoske oczoske merged commit 21aafa9 into dev_master Jun 15, 2023
6 checks passed
@oczoske oczoske deleted the oc/grating_efficiencies branch June 15, 2023 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants